package com.qk.ezbuy.service;

import com.github.pagehelper.PageInfo;
import com.qk.ezbuy.pojo.News;
import com.qk.ezbuy.pojo.ProductCategory;
import org.springframework.stereotype.Service;
import com.qk.ezbuy.pojo.ProductCategory;

import java.util.List;

@Service
public interface ProductCategoryService {
    //查询所有分类
    PageInfo<ProductCategory> selectAll(int pageNum, int pageSize);

    //删除分类
    int delProductCategoryById(int id);

    //查找所有
    List<ProductCategory> selectProductCategoryAll();

    //增加
    int insertSelective(ProductCategory record);

    List<ProductCategory> selectAll();

    //根据type查找
    List<ProductCategory> selectProductCategoryByType(int type);

    //修改分类
    int updateByPrimaryKeySelective(ProductCategory record);

    //根据id查询分类
    ProductCategory selectProductCategoryById(int id);
}

